projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5eb1812
)
gsktransform: Make next == NULL case explicit
author
Timm Bäder
<mail@baedert.org>
Sat, 6 Jun 2020 07:05:49 +0000
(09:05 +0200)
committer
Timm Bäder
<mail@baedert.org>
Fri, 19 Jun 2020 03:26:24 +0000
(
05:26
+0200)
This is handled with the is_identity() check as well but this way it's
much more obvious what's happening
gsk/gsktransform.c
patch
|
blob
|
history
diff --git
a/gsk/gsktransform.c
b/gsk/gsktransform.c
index 2d94d7e7a550c5d00b0c3042f35a553d829a3cae..79f230c0a1f6de45b5cbeb2f711b61fefba3c33b 100644
(file)
--- a/
gsk/gsktransform.c
+++ b/
gsk/gsktransform.c
@@
-1622,6
+1622,9
@@
gsk_transform_transform (GskTransform *next,
if (other == NULL)
return next;
+ if (next == NULL)
+ return gsk_transform_ref (other);
+
if (gsk_transform_is_identity (next))
{
/* ref before unref to avoid catastrophe when other == next */